# $Id: PKGBUILD 183482 2013-04-21 22:21:02Z heftig $
#Maintainer : Ionut Biru <ibiru@archlinux.org>
#Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=seed
pkgver=3.8.1
pkgrel=1
pkgdesc="Library and interpreter for JavaScript with GObject type system bindings."
arch=('i686' 'x86_64')
url="http://live.gnome.org/Seed/"
license=('LGPL')
options=('!libtool')
depends=('webkitgtk3' 'gobject-introspection' 'gnome-js-common' 'mpfr')
makedepends=('intltool')
source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/3.8/${pkgname}-${pkgver}.tar.xz
        GLib.js)
sha256sums=('80cb4db7fa6f6cf8d3e255fc45a81657388d458bc8bf23e4089e35f69eeaac32'
            '2a8185df661056e12830d0a29155dc539016fc349a823f5aec09dd15bbb9239b')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -m644 ../GLib.js extensions/
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
